package com.ss.android.mine;

import android.content.SharedPreferences;

import com.bytedance.common.utility.c.SharedPreferenceCompat;
import com.ss.android.article.base.app.AppData;
import com.ss.android.common.ui.view.SwitchButton.a;

final class z implements a {
    z() {

    }

    public final boolean a(boolean arg4) {
        AppData v0 = AppData.getInstance();
        v0.mSearchRecommend = arg4;
        SharedPreferences.Editor v0_1 = v0.mContext.getSharedPreferences("app_setting", 0).edit();
        v0_1.putBoolean("search_recommend", arg4);
        SharedPreferenceCompat.commit(v0_1);
        return true;
    }
}

